package com.xuecheng.content.service.impl;

import com.xuecheng.content.mapper.CourseCategoryMapper;
import com.xuecheng.content.model.dto.CourseCategoryTreeDto;
import com.xuecheng.content.service.CourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: CourseCategoryServiceImpl
 * Package: com.xuecheng.content.service.impl
 * Description: 课程分类 服务实现类
 *
 * @Author Endeavor-ZQB
 * @Create 2023/1/28 17:11
 * @Version 1.0
 */
@Service
public class CourseCategoryServiceImpl implements CourseCategoryService {

    @Autowired
    CourseCategoryMapper courseCategoryMapper;

    @Override
    public List<CourseCategoryTreeDto> queryTreeNodes() {

        return courseCategoryMapper.selectTreeNodes();
    }
}
